package com.sinping.qh.utils.email;

import java.util.HashMap;
import java.util.Map;


public class EmailConstants {

    public static String KEY_MSG_OPENING="开立账户";

    public static String KEY_MSG_ACTIVE_ACCOUNT="激活账户";

    public static String KEY_MSG_SIGNUP_SUCCESS="代理登记审核通过";

    public static String KEY_MSG_SIGNUP_REJECT="代理登记审核拒绝";

    public static String KEY_MSG_REGISTER_SUCCESS="代理注册审核通过";

    public static String KEY_MSG_REGISTER_REJECT="代理注册审核拒绝";

    public static String KEY_MSG_TELDEPSIT_SUCCESS="电汇入金成功";

    public static String KEY_MSG_BANKWITHDRAW_SUCCESS="银行卡出金成功";

    public static String KEY_MSG_WITHDRAW_IGNORE="出金忽略";

    public static String KEY_MSG_WITHDRAW_BACK="出金退回";

    public static String KEY_MSG_TRANSFER_SUCCESS="转账成功";

    public static String KEY_MSG_TRANSFER_IGNORE="转账忽略";

    public static String KEY_MSG_BALCLRAR_SUCCESS="资金清零成功";

    public static String KEY_MSG_BALCLRAR_IGNORE="资金清零忽略";

    public static String KEY_MSG_IB_RELATION_CHANGE="代理关系变更";

    public static String KEY_MSG_MEMBER_RELATION_CHANGE="客户关系变更";

    public static String KEY_MSG_LARGE_DEPOSIT="大额资金提醒";

    public static String KEY_MSG_CHANGE_SALEPASS="变更销售密码";

    public static String KEY_MSG_CREATE_SALE="创建销售";

    public static String KEY_MSG_DEPOSIT_IGNORE="入金忽略";


    // y验证码
    public static String KEY_EMAIL_VERIFYCODE = "KEY_EMAIL_VERIFYCODE";

    //销售创建
    public static String KEY_EMAIL_SALE_CREATE = "KEY_EMAIL_SALE_CREATE";

    //销售变更密码
    public static String KEY_EMAIL_SALE_CHANGE_PASS = "KEY_EMAIL_SALE_CHANGE_PASS";


    //客户开户成功 客户二次开户成功
    public static String KEY_EMAIL_CUSTOMER_OPENING = "KEY_EMAIL_CUSTOMER_OPENING";
    public static String KEY_EMAIL_CUSTOMER_OPENING_TO_SALE = "KEY_EMAIL_CUSTOMER_OPENING_TO_SALE";

    //客户MT4账号激活
    public static String KEY_EMAIL_CUSTOMER_MT4_ACTIVE_SUCC = "KEY_EMAIL_CUSTOMER_MT4_ACTIVE_SUCC";
    public static String KEY_EMAIL_CUSTOMER_MT4_ACTIVE_SUCC_TO_SALE = "KEY_EMAIL_CUSTOMER_MT4_ACTIVE_SUCC_TO_SALE";

    //客户密码重置
    public static String KEY_EMAIL_CUSTOMER_MT4_RESET = "KEY_EMAIL_CUSTOMER_MT4_RESET";


    //代理登记审核通过
    public static String KEY_EMAIL_IB_SIGNUP_REVIEW_PASS = "KEY_EMAIL_IB_SIGNUP_REVIEW_PASS";
    public static String KEY_EMAIL_IB_SIGNUP_REVIEW_PASS_TO_SALE = "KEY_EMAIL_IB_SIGNUP_REVIEW_PASS_TO_SALE";

    //代理登记审核拒绝
    public static String KEY_EMAIL_IB_SIGNUP_REVIEW_REJECT = "KEY_EMAIL_IB_SIGNUP_REVIEW_REJECT";
    public static String KEY_EMAIL_IB_SIGNUP_REVIEW_REJECT_TO_SALE = "KEY_EMAIL_IB_SIGNUP_REVIEW_REJECT_TO_SALE";

    //代理注册审核通过
    public static String KEY_EMAIL_IB_REGISTER_REVIEW_PASS = "KEY_EMAIL_IB_REGISTER_REVIEW_PASS";
    public static String KEY_EMAIL_IB_REGISTER_REVIEW_PASS_TO_SALE = "KEY_EMAIL_IB_REGISTER_REVIEW_PASS_TO_SALE";

    //代理注册审核拒绝
    public static String KEY_EMAIL_IB_REGISTER_REVIEW_REJECT = "KEY_EMAIL_IB_REGISTER_REVIEW_REJECT";
    public static String KEY_EMAIL_IB_REGISTER_REVIEW_REJECT_TO_SALE = "KEY_EMAIL_IB_REGISTER_REVIEW_REJECT_TO_SALE";

    //客户入金成功
    public static String KEY_EMAIL_CUSTOMER_TEL_DEPOSIT_SUCC = "KEY_EMAIL_CUSTOMER_TEL_DEPOSIT_SUCC";
    public static String KEY_EMAIL_CUSTOMER_TEL_DEPOSIT_SUCC_TO_SALE = "KEY_EMAIL_CUSTOMER_TEL_DEPOSIT_SUCC_TO_SALE";

    //客户（电汇）入金
    public static String KEY_EMAIL_CUSTOMER_DEPOSIT_TEL_APPLY = "KEY_EMAIL_CUSTOMER_DEPOSIT_TEL_APPLY";
    public static String KEY_EMAIL_CUSTOMER_DEPOSIT_TEL_APPLY_TO_SALE = "KEY_EMAIL_CUSTOMER_DEPOSIT_TEL_APPLY_TO_SALE";

    //出金提交
    public static String KEY_EMAIL_CUSTOMER_WITHDRAW_APPLY = "KEY_EMAIL_CUSTOMER_WITHDRAW_APPLY";
    public static String KEY_EMAIL_CUSTOMER_WITHDRAW_APPLY_TO_SALE = "KEY_EMAIL_CUSTOMER_WITHDRAW_APPLY_TO_SALE";

    //出金提交 客户（电汇）
    public static String KEY_EMAIL_CUSTOMER_WITHDRAW_TEL_APPLY = "KEY_EMAIL_CUSTOMER_WITHDRAW_TEL_APPLY";
    public static String KEY_EMAIL_CUSTOMER_WITHDRAW_TEL_APPLY_TO_SALE = "KEY_EMAIL_CUSTOMER_WITHDRAW_TEL_APPLY_TO_SALE";

    //出金成功
    public static String KEY_EMAIL_CUSTOMER_WITHDRAW_SUCCESS = "KEY_EMAIL_CUSTOMER_WITHDRAW_SUCCESS";
    public static String KEY_EMAIL_CUSTOMER_WITHDRAW_SUCCESS_TO_SALE = "KEY_EMAIL_CUSTOMER_WITHDRAW_SUCCESS_TO_SALE";

    //出金成功 (电汇)
    public static String KEY_EMAIL_CUSTOMER_WITHDRAW_TEL_SUCCESS = "KEY_EMAIL_CUSTOMER_WITHDRAW_TEL_SUCCESS";
    public static String KEY_EMAIL_CUSTOMER_WITHDRAW_TEL_SUCCESS_TO_SALE = "KEY_EMAIL_CUSTOMER_WITHDRAW_TEL_SUCCESS_TO_SALE";

    //出金忽略
    public static String KEY_EMAIL_CUSTOMER_WITHDRAW_IGNORE = "KEY_EMAIL_CUSTOMER_WITHDRAW_IGNORE";
    public static String KEY_EMAIL_CUSTOMER_WITHDRAW_IGNORE_TO_SALE = "KEY_EMAIL_CUSTOMER_WITHDRAW_IGNORE_TO_SALE";

    //出金退回
    public static String KEY_EMAIL_CUSTOMER_WITHDRAW_BACK = "KEY_EMAIL_CUSTOMER_WITHDRAW_BACK";
    public static String KEY_EMAIL_CUSTOMER_WITHDRAW_BACK_TO_SALE = "KEY_EMAIL_CUSTOMER_WITHDRAW_BACK_TO_SALE";

    //转账成功
    public static String KEY_EMAIL_CUSTOMER_TRANSFER_SUCCESS = "KEY_EMAIL_CUSTOMER_TRANSFER_SUCCESS";
    public static String KEY_EMAIL_CUSTOMER_TRANSFER_SUCCESS_TO_SALE = "KEY_EMAIL_CUSTOMER_TRANSFER_SUCCESS_TO_SALE";

    //转账拒绝
    public static String KEY_EMAIL_CUSTOMER_TRANSFER_REFUSE = "KEY_EMAIL_CUSTOMER_TRANSFER_REFUSE";
    public static String KEY_EMAIL_CUSTOMER_TRANSFER_REFUSE_TO_SALE = "KEY_EMAIL_CUSTOMER_TRANSFER_REFUSE_TO_SALE";

    //取消转账成功
    public static String KEY_EMAIL_CUSTOME_TRANSFERR_CANCEL = "KEY_EMAIL_CUSTOME_TRANSFERR_CANCEL";
    public static String KEY_EMAIL_CUSTOMER_TRANSFER_CANCEL_TO_SALE = "KEY_EMAIL_CUSTOMER_TRANSFER_CANCEL_TO_SALE";

    //客户账户余额清零成功
    public static String KEY_EMAIL_CUSTOMER_BALANCE_FLUSH_SUCCESS = "KEY_EMAIL_CUSTOMER_BALANCE_FLUSH_SUCCESS";
    public static String KEY_EMAIL_CUSTOMER_BALANCE_FLUSH_SUCCESS_TO_SALE = "KEY_EMAIL_CUSTOMER_BALANCE_FLUSH_SUCCESS_TO_SALE";

    //客户账户余额清零忽略
    public static String KEY_EMAIL_CUSTOMER_BALANCE_FLUSH_IGNORE = "KEY_EMAIL_CUSTOMER_BALANCE_FLUSH_IGNORE";
    public static String KEY_EMAIL_CUSTOMER_BALANCE_FLUSH_IGNORE_TO_SALE = "KEY_EMAIL_CUSTOMER_BALANCE_FLUSH_IGNORE_TO_SALE";

    //客户分配新销售
    public static String KEY_EMAIL_CUSTOMER_ASSIGN_NEW_SALE = "KEY_EMAIL_CUSTOMER_ASSIGN_NEW_SALE";
    public static String KEY_EMAIL_CUSTOMER_ASSIGN_NEW_SALE_TO_SALE = "KEY_EMAIL_CUSTOMER_ASSIGN_NEW_SALE_TO_SALE";

    //代理分配新销售
    public static String KEY_EMAIL_IB_ASSIGN_NEW_SALE = "KEY_EMAIL_IB_ASSIGN_NEW_SALE";
    public static String KEY_EMAIL_IB_ASSIGN_NEW_SALE_TO_SALE = "KEY_EMAIL_IB_ASSIGN_NEW_SALE_TO_SALE";

    //客户入金大于大额入金播报的阈值
    public static String KEY_EMAIL_CUSTOMER_DEPOSIT_TOO_BIG = "KEY_EMAIL_CUSTOMER_DEPOSIT_TOO_BIG";
    public static String KEY_EMAIL_CUSTOMER_DEPOSIT_TOO_BIG_TO_SALE = "KEY_EMAIL_CUSTOMER_DEPOSIT_TOO_BIG_TO_SALE";

    //转账提交申请
    public static String KEY_EMAIL_CUSTOMER_TRANSFER_SUBMIT = "KEY_EMAIL_CUSTOMER_TRANSFER_SUBMIT";
    public static String KEY_EMAIL_CUSTOMER_TRANSFER_SUBMIT_TO_SALE = "KEY_EMAIL_CUSTOMER_TRANSFER_SUBMIT_TO_SALE";

    //账户余额清零提交申请 ok
    public static String KEY_EMAIL_CUSTOMER_BALANCE_FLUSH_SUBMIT = "KEY_EMAIL_CUSTOMER_BALANCE_FLUSH_SUBMIT";
    public static String KEY_EMAIL_CUSTOMER_BALANCE_FLUSH_SUBMIT_TO_SALE = "KEY_EMAIL_CUSTOMER_BALANCE_FLUSH_SUBMIT_TO_SALE";

    //电汇入金忽略
    public static String KEY_EMAIL_CUSTOMER_DEPOSIT_IGNORE = "KEY_EMAIL_CUSTOMER_DEPOSIT_IGNORE";
    public static String KEY_EMAIL_CUSTOMER_DEPOSIT_IGNORE_TO_SALE = "KEY_EMAIL_CUSTOMER_DEPOSIT_IGNORE_TO_SALE";

    public static Map<String, String> emailMap = new HashMap<>();

    static {
        try {
            //TODO 空指针异常
           //销售变更密码
            emailMap.put(KEY_EMAIL_SALE_CHANGE_PASS, FileUtils.readString(EmailConstants.class.getResourceAsStream("/config/mail/email_sale_changpass.html")));

            emailMap.put(KEY_EMAIL_CUSTOMER_MT4_RESET,FileUtils.readString(EmailConstants.class.getResourceAsStream("/config/mail/email_customer_mt4_reset.html")));

            //客户开户成功 客户二次开户成功
            emailMap.put(KEY_EMAIL_CUSTOMER_OPENING, FileUtils.readString(EmailConstants.class.getResourceAsStream("/config/mail/email_customer_opening.html")));
            emailMap.put(KEY_EMAIL_CUSTOMER_OPENING_TO_SALE, FileUtils.readString(EmailConstants.class.getResourceAsStream("/config/mail/email_customer_opening_to_sale.html")));
            //客户MT4账号激活
            emailMap.put(KEY_EMAIL_CUSTOMER_MT4_ACTIVE_SUCC, FileUtils.readString(EmailConstants.class.getResourceAsStream("/config/mail/email_customer_mt4_active_succ.html")));
            emailMap.put(KEY_EMAIL_CUSTOMER_MT4_ACTIVE_SUCC_TO_SALE, FileUtils.readString(EmailConstants.class.getResourceAsStream("/config/mail/email_customer_mt4_active_succ_to_sale.html")));
            //代理登记审核通过
            emailMap.put(KEY_EMAIL_IB_SIGNUP_REVIEW_PASS, FileUtils.readString(EmailConstants.class.getResourceAsStream("/config/mail/email_ib_signup_review_pass.html")));
            emailMap.put(KEY_EMAIL_IB_SIGNUP_REVIEW_PASS_TO_SALE, FileUtils.readString(EmailConstants.class.getResourceAsStream("/config/mail/email_ib_signup_review_pass_to_sale.html")));
            //代理登记审核拒绝
            emailMap.put(KEY_EMAIL_IB_SIGNUP_REVIEW_REJECT, FileUtils.readString(EmailConstants.class.getResourceAsStream("/config/mail/email_ib_signup_review_reject.html")));
            emailMap.put(KEY_EMAIL_IB_SIGNUP_REVIEW_REJECT_TO_SALE, FileUtils.readString(EmailConstants.class.getResourceAsStream("/config/mail/email_ib_signup_review_reject_to_sale.html")));
            //代理注册审核通过
            emailMap.put(KEY_EMAIL_IB_REGISTER_REVIEW_PASS, FileUtils.readString(EmailConstants.class.getResourceAsStream("/config/mail/email_ib_register_review_pass.html")));
            emailMap.put(KEY_EMAIL_IB_REGISTER_REVIEW_PASS_TO_SALE, FileUtils.readString(EmailConstants.class.getResourceAsStream("/config/mail/email_ib_register_review_pass_to_sale.html")));
            //代理注册审核拒绝
            emailMap.put(KEY_EMAIL_IB_REGISTER_REVIEW_REJECT, FileUtils.readString(EmailConstants.class.getResourceAsStream("/config/mail/email_ib_register_review_reject.html")));
            emailMap.put(KEY_EMAIL_IB_REGISTER_REVIEW_REJECT_TO_SALE, FileUtils.readString(EmailConstants.class.getResourceAsStream("/config/mail/email_ib_register_review_reject_to_sale.html")));
            //客户入金成功
            emailMap.put(KEY_EMAIL_CUSTOMER_TEL_DEPOSIT_SUCC, FileUtils.readString(EmailConstants.class.getResourceAsStream("/config/mail/email_customer_deposit_tel_success.html")));
            emailMap.put(KEY_EMAIL_CUSTOMER_TEL_DEPOSIT_SUCC_TO_SALE, FileUtils.readString(EmailConstants.class.getResourceAsStream("/config/mail/email_customer_deposit_tel_success_to_sale.html")));
            //客户（电汇）入金
            emailMap.put(KEY_EMAIL_CUSTOMER_DEPOSIT_TEL_APPLY, FileUtils.readString(EmailConstants.class.getResourceAsStream("/config/mail/email_customer_deposit_tel_apply.html")));
            emailMap.put(KEY_EMAIL_CUSTOMER_DEPOSIT_TEL_APPLY_TO_SALE, FileUtils.readString(EmailConstants.class.getResourceAsStream("/config/mail/email_customer_deposit_tel_apply_to_sale.html")));
            //出金提交
            emailMap.put(KEY_EMAIL_CUSTOMER_WITHDRAW_APPLY, FileUtils.readString(EmailConstants.class.getResourceAsStream("/config/mail/email_customer_withdraw_apply.html")));
            emailMap.put(KEY_EMAIL_CUSTOMER_WITHDRAW_APPLY_TO_SALE, FileUtils.readString(EmailConstants.class.getResourceAsStream("/config/mail/email_customer_withdraw_apply_to_sale.html")));
            //出金提交 客户（电汇）
            emailMap.put(KEY_EMAIL_CUSTOMER_WITHDRAW_TEL_APPLY, FileUtils.readString(EmailConstants.class.getResourceAsStream("/config/mail/email_customer_withdraw_tel_apply.html")));
            emailMap.put(KEY_EMAIL_CUSTOMER_WITHDRAW_TEL_APPLY_TO_SALE, FileUtils.readString(EmailConstants.class.getResourceAsStream("/config/mail/email_customer_withdraw_tel_apply_to_sale.html")));
            //出金成功
            emailMap.put(KEY_EMAIL_CUSTOMER_WITHDRAW_SUCCESS, FileUtils.readString(EmailConstants.class.getResourceAsStream("/config/mail/email_customer_withdraw_success.html")));
            emailMap.put(KEY_EMAIL_CUSTOMER_WITHDRAW_SUCCESS_TO_SALE, FileUtils.readString(EmailConstants.class.getResourceAsStream("/config/mail/email_customer_withdraw_success_to_sale.html")));
            //出金成功 (电汇)
            emailMap.put(KEY_EMAIL_CUSTOMER_WITHDRAW_TEL_SUCCESS, FileUtils.readString(EmailConstants.class.getResourceAsStream("/config/mail/email_customer_withdraw_tel_success.html")));
            emailMap.put(KEY_EMAIL_CUSTOMER_WITHDRAW_TEL_SUCCESS_TO_SALE, FileUtils.readString(EmailConstants.class.getResourceAsStream("/config/mail/email_customer_withdraw_tel_success_to_sale.html")));
            //出金忽略
            emailMap.put(KEY_EMAIL_CUSTOMER_WITHDRAW_IGNORE, FileUtils.readString(EmailConstants.class.getResourceAsStream("/config/mail/email_customer_withdraw_ignore.html")));
            emailMap.put(KEY_EMAIL_CUSTOMER_WITHDRAW_IGNORE_TO_SALE, FileUtils.readString(EmailConstants.class.getResourceAsStream("/config/mail/email_customer_withdraw_ignore_to_sale.html")));
            //出金退回
            emailMap.put(KEY_EMAIL_CUSTOMER_WITHDRAW_BACK, FileUtils.readString(EmailConstants.class.getResourceAsStream("/config/mail/email_customer_withdraw_back.html")));
            emailMap.put(KEY_EMAIL_CUSTOMER_WITHDRAW_BACK_TO_SALE, FileUtils.readString(EmailConstants.class.getResourceAsStream("/config/mail/email_customer_withdraw_back_to_sale.html")));
            //转账成功
            emailMap.put(KEY_EMAIL_CUSTOMER_TRANSFER_SUCCESS, FileUtils.readString(EmailConstants.class.getResourceAsStream("/config/mail/email_customer_transfer_success.html")));
            emailMap.put(KEY_EMAIL_CUSTOMER_TRANSFER_SUCCESS_TO_SALE, FileUtils.readString(EmailConstants.class.getResourceAsStream("/config/mail/email_customer_transfer_success_to_sale.html")));
            //转账拒绝
            emailMap.put(KEY_EMAIL_CUSTOMER_TRANSFER_REFUSE, FileUtils.readString(EmailConstants.class.getResourceAsStream("/config/mail/email_customer_transfer_refuse.html")));
            emailMap.put(KEY_EMAIL_CUSTOMER_TRANSFER_REFUSE_TO_SALE, FileUtils.readString(EmailConstants.class.getResourceAsStream("/config/mail/email_customer_transfer_refuse_to_sale.html")));
            //取消转账成功
            emailMap.put(KEY_EMAIL_CUSTOME_TRANSFERR_CANCEL, FileUtils.readString(EmailConstants.class.getResourceAsStream("/config/mail/email_custome_transferr_cancel.html")));
            emailMap.put(KEY_EMAIL_CUSTOMER_TRANSFER_CANCEL_TO_SALE, FileUtils.readString(EmailConstants.class.getResourceAsStream("/config/mail/email_custome_transferr_cancel_to_sale.html")));
            //客户账户余额清零成功
            emailMap.put(KEY_EMAIL_CUSTOMER_BALANCE_FLUSH_SUCCESS, FileUtils.readString(EmailConstants.class.getResourceAsStream("/config/mail/email_customer_balance_flush_success.html")));
            emailMap.put(KEY_EMAIL_CUSTOMER_BALANCE_FLUSH_SUCCESS_TO_SALE, FileUtils.readString(EmailConstants.class.getResourceAsStream("/config/mail/email_customer_balance_flush_success_to_sale.html")));
            //客户账户余额清零忽略
            emailMap.put(KEY_EMAIL_CUSTOMER_BALANCE_FLUSH_IGNORE, FileUtils.readString(EmailConstants.class.getResourceAsStream("/config/mail/email_customer_balance_flush_ignore.html")));
            emailMap.put(KEY_EMAIL_CUSTOMER_BALANCE_FLUSH_IGNORE_TO_SALE, FileUtils.readString(EmailConstants.class.getResourceAsStream("/config/mail/email_customer_balance_flush_ignore_to_sale.html")));
            //客户分配新销售
            emailMap.put(KEY_EMAIL_CUSTOMER_ASSIGN_NEW_SALE, FileUtils.readString(EmailConstants.class.getResourceAsStream("/config/mail/email_customer_assign_new_sale.html")));
            //代理分配新销售
            emailMap.put(KEY_EMAIL_IB_ASSIGN_NEW_SALE, FileUtils.readString(EmailConstants.class.getResourceAsStream("/config/mail/email_ib_assign_new_sale.html")));
            //客户入金大于大额入金播报的阈值
            emailMap.put(KEY_EMAIL_CUSTOMER_DEPOSIT_TOO_BIG, FileUtils.readString(EmailConstants.class.getResourceAsStream("/config/mail/email_customer_deposit_too_big.html")));
            //转账提交申请
            emailMap.put(KEY_EMAIL_CUSTOMER_TRANSFER_SUBMIT , FileUtils.readString(EmailConstants.class.getResourceAsStream("/config/mail/email_customer_transfer_submit.html")));
            emailMap.put(KEY_EMAIL_CUSTOMER_TRANSFER_SUBMIT_TO_SALE, FileUtils.readString(EmailConstants.class.getResourceAsStream("/config/mail/email_customer_transfer_submit_to_sale.html")));
            //账户余额清零提交申请 ok
            emailMap.put(KEY_EMAIL_CUSTOMER_BALANCE_FLUSH_SUBMIT, FileUtils.readString(EmailConstants.class.getResourceAsStream("/config/mail/email_customer_balance_flush_submit.html")));
            emailMap.put(KEY_EMAIL_CUSTOMER_BALANCE_FLUSH_SUBMIT_TO_SALE , FileUtils.readString(EmailConstants.class.getResourceAsStream("/config/mail/email_customer_balance_flush_submit_to_sale.html")));
            //验证码
            //出金忽略
            emailMap.put(KEY_EMAIL_CUSTOMER_DEPOSIT_IGNORE, FileUtils.readString(EmailConstants.class.getResourceAsStream("/config/mail/email_customer_deposit_ignore.html")));
            emailMap.put(KEY_EMAIL_CUSTOMER_DEPOSIT_IGNORE_TO_SALE, FileUtils.readString(EmailConstants.class.getResourceAsStream("/config/mail/email_customer_deposit_ignore_to_sale.html")));

            //销售创建
            emailMap.put(KEY_EMAIL_SALE_CREATE, FileUtils.readString(EmailConstants.class.getResourceAsStream("/config/mail/email_sale_create.html")));

            //
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

}